<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On
	
	#Charset
	AddDefaultCharset utf-8
	
	#Protect - DOS
	LimitRequestBody 10000000
	
	#Index Protect
	Options All -Indexes
	
	<Files .htaccess>
	order allow,deny
	deny from all
	</Files>

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
	
	RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s(.*)/index\.php [NC]
	RewriteRule ^ %1 [R=301,L]

</IfModule>
